package cn.virens.server.aio.listener.simple;

import java.nio.ByteBuffer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.virens.common.utils.number.ByteUtil;
import cn.virens.server.aio.channel.AioChannel;
import cn.virens.server.aio.listener.AioDataWriteListener;

public class SimpleAioDataWriteListener implements AioDataWriteListener {
	private final Logger logger = LoggerFactory.getLogger(getClass());

	@Override
	public void onWrite(AioChannel aioChannel, ByteBuffer buffer, Integer result) {
		logger.debug("数据已发送:" + aioChannel + "->" + ByteUtil.toHex(buffer.array()));
	}

}
